package edu.zqu.instructionalMatters.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;

/**
 * @Author 何文东
 * @Date 2020-07-03
 * @Description: 课程变动申请类型 - 实体类
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_changes_application_status")
public class CourseChangesApplicationStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学校id
     */
    @TableField("college_id")
    private BigInteger collegeId;

    /**
     * 课程变动申请类型：0调课，1补课，2停课，3…
     */
    @TableField("name")
    private String name;

    /**
     * 课程变动申请类型英文名称
     */
    @TableField("english_name")
    private String englishName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    /**
     * 操作者
     */
    @TableField("by_who")
    private BigInteger byWho;

    /**
     * 本记录是否有效
     */
    @TableField("deleted")
    @TableLogic
    private Boolean deleted;

    /**
     * 历史版本
     */
    @TableField("last_version")
    private BigInteger lastVersion;


}
